/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.enums;

import com.sigmatrix.h5.utils.Cons;

/**
 *@ClassName: ResponseEnum
 *@Description: TODO()
 *@author youjun
 *@date 2017年6月22日 下午7:56:33
 */
public enum ResponseEnum {

	/**返回成功响应*/
	SUCCESS(Cons.RESPONSE_CODE_SUCCESS, "成功"),
	
	/**参数无效*/
	PARAM_INVALID(Cons.RESPONSE_CODE_PARAM_INVALID, "参数无效"),
	
	/**请求参数为空*/
	PARAM_NULL(Cons.RESPONSE_CODE_PARAM_NULL, "请求参数为空"),
	
	/**数据不存在*/
	NO_DATA(Cons.RESPONSE_CODE_NO_DATA, "数据不存在"),
	
	/**数据已存在*/
	EXISTED_DATA(Cons.RESPONSE_CODE_EXISTED_DATA, "数据已存在"),
	
	/**系统异常*/
	EXCEPTION(Cons.RESPONSE_CODE_EXCEPTION, "系统异常");
	
	public Integer code;
	
	public String message;

	/**
	 *@Title: ResponseEnum
	 *@Description: TODO
	 *@param code
	 *@param message
	 */
	private ResponseEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	/**
	 *@return the code
	 */
	public Integer getCode() {
		return code;
	}

	/**
	 *@param code the code to set
	 */
	public void setCode(Integer code) {
		this.code = code;
	}

	/**
	 *@return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 *@param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
